local StoryHelper = {}

function StoryHelper.getStoryGroup(groupId)
    local story_chat = require("config.story_chat")
    local result = {}
    local len = story_chat.length()
    for i = 1, len do
        local config = story_chat.indexOf(i)
        if config.group == groupId then
            table.insert(result, config)
        end
    end
    return result
end

function StoryHelper.getChat(id)
    local config = require("config.hero_chat").get(id)
    assert(config, "can not found config in hero_chat by id=" .. id)
    return config.content
end

return StoryHelper
